import { CSSProperties, ReactElement } from 'react';
import styles from './index.module.less';

interface AppFormDataProps {
  children: ReactElement;

  style?: CSSProperties;
}

/**
 * 应用表单数据提交
 * 1. 目前只负责包装已存在的表单
 * 2. 做数据转换
 * 3. 做内容扩展
 * @param props
 */
const AppFormData = function (props: AppFormDataProps) {
  const { children, style } = props;
  return (
    <div style={style} className={styles.appFormContainer}>
      {children}
    </div>
  );
};

export default AppFormData;
